/*
 * CanvasAbstract.java
 *
 * Created on 4 de Junho de 2007, 22:35
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.view.components;

import java.util.Vector;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Graphics;

/**
 *
 * @author $Leandro$
 */
public abstract class CanvasAbstract {
    
    public int maxX;
    
    public int maxY;
    
    public int x;
    
    public int y;
    
    public int width;
    
    public int height;
    
    public Graphics g;
    
    /** Creates a new instance of PaintableObject */
    public CanvasAbstract(Graphics g) {
        this.g = g;
        this.x = 0;
        this.y = 0;
        this.width = 0;
        this.height = 0;
    }
    
    public abstract void paint();
    
    public void alphaImg(){
        /*
         int[] rgbData = new int[img.getWidth()*img.getHeight()];
         img.getRGB(rgbData, 0, img.getWidth(), 0, 0, img.getWidth(), img.getHeight());
         g.drawRGB(rgbData, 0, img.getWidth(), posX, posY, img.getWidth(), img.getHeight(), true);
         */
        
    }
    
}
